
{% extends 'blog/base.html' %}
{% load static %}
{% load blog_tags %}
{% block title %} {{ article.title }} {% endblock %}
{% block extra_head %}{% endblock %}

{% block main %}
    <div >
        <div>文章归档</div>
        <div>
            <ul>
                {% for archive in archive_data %}
                    <li >
                            <h3 style="padding:0">{{ archive.date }}</h3>
                            <ul>
                                {% for article in archive.articles %}
                                    <li>
                                        <em>{{ article.create_time |date:"d" }}日</em>
                                        <a href="{% url 'blog:article-detail' article.id %}">{{ article.title }}</a>
                                    </li>
                                {% endfor %}
                            </ul>
                    </li>
                {% endfor %}
            </ul>
        </div>
    </div>
{% endblock %}